<%@ page import="imobiliaria2.Imovel" %>



			<div class="${hasErrors(bean: imovelInstance, field: 'status', 'error')} ">
				<label for="status" class="control-label"><g:message code="imovel.status.label" default="Status" /></label>
				<div>
					<g:select class="form-control" name="status" from="${imovelInstance.constraints.status.inList}" value="${imovelInstance?.status}" valueMessagePrefix="imovel.status" noSelection="['': '']"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'status', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'tipoDeImovel', 'error')} ">
				<label for="tipoDeImovel" class="control-label"><g:message code="imovel.tipoDeImovel.label" default="Tipo De Imovel" /></label>
				<div>
					<g:select class="form-control" name="tipoDeImovel" from="${imovelInstance.constraints.tipoDeImovel.inList}" value="${imovelInstance?.tipoDeImovel}" valueMessagePrefix="imovel.tipoDeImovel" noSelection="['': '']"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'tipoDeImovel', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'posicao', 'error')} ">
				<label for="posicao" class="control-label"><g:message code="imovel.posicao.label" default="Posicao" /></label>
				<div>
					<g:select class="form-control" name="posicao" from="${imovelInstance.constraints.posicao.inList}" value="${imovelInstance?.posicao}" valueMessagePrefix="imovel.posicao" noSelection="['': '']"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'posicao', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'area', 'error')} required">
				<label for="area" class="control-label"><g:message code="imovel.area.label" default="Area" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="area" value="${fieldValue(bean: imovelInstance, field: 'area')}" required=""/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'area', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'comodos', 'error')} required">
				<label for="comodos" class="control-label"><g:message code="imovel.comodos.label" default="Comodos" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="comodos" type="number" value="${imovelInstance.comodos}" required=""/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'comodos', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'possuiGaragem', 'error')} ">
				<label for="possuiGaragem" class="control-label"><g:message code="imovel.possuiGaragem.label" default="Possui Garagem" /></label>
				<div>
					<bs:checkBox name="possuiGaragem" value="${imovelInstance?.possuiGaragem}" />
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'possuiGaragem', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'vagasGaragem', 'error')} required">
				<label for="vagasGaragem" class="control-label"><g:message code="imovel.vagasGaragem.label" default="Vagas Garagem" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="vagasGaragem" type="number" value="${imovelInstance.vagasGaragem}" required=""/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'vagasGaragem', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'dependenciaDeEmpregada', 'error')} ">
				<label for="dependenciaDeEmpregada" class="control-label"><g:message code="imovel.dependenciaDeEmpregada.label" default="Dependencia De Empregada" /></label>
				<div>
					<bs:checkBox name="dependenciaDeEmpregada" value="${imovelInstance?.dependenciaDeEmpregada}" />
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'dependenciaDeEmpregada', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'mobiliado', 'error')} ">
				<label for="mobiliado" class="control-label"><g:message code="imovel.mobiliado.label" default="Mobiliado" /></label>
				<div>
					<bs:checkBox name="mobiliado" value="${imovelInstance?.mobiliado}" />
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'mobiliado', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'valorAluguel', 'error')} required">
				<label for="valorAluguel" class="control-label"><g:message code="imovel.valorAluguel.label" default="Valor Aluguel" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="valorAluguel" value="${fieldValue(bean: imovelInstance, field: 'valorAluguel')}" required=""/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'valorAluguel', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'valorCalcao', 'error')} required">
				<label for="valorCalcao" class="control-label"><g:message code="imovel.valorCalcao.label" default="Valor Calcao" /><span class="required-indicator">*</span></label>
				<div>
					<g:field class="form-control" name="valorCalcao" value="${fieldValue(bean: imovelInstance, field: 'valorCalcao')}" required=""/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'valorCalcao', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'descricao', 'error')} required">
				<label for="descricao" class="control-label"><g:message code="imovel.descricao.label" default="Descricao" /><span class="required-indicator">*</span></label>
				<div>
					<g:textField class="form-control" name="descricao" required="" value="${imovelInstance?.descricao}"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'descricao', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'localizacao', 'error')} required">
				<label for="localizacao" class="control-label"><g:message code="imovel.localizacao.label" default="Localizacao" /><span class="required-indicator">*</span></label>
				<div>
					<g:textField class="form-control" name="localizacao" required="" value="${imovelInstance?.localizacao}"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'localizacao', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'horarioParaVisita', 'error')} required">
				<label for="horarioParaVisita" class="control-label"><g:message code="imovel.horarioParaVisita.label" default="Horario Para Visita" /><span class="required-indicator">*</span></label>
				<div>
					<g:textField class="form-control" name="horarioParaVisita" required="" value="${imovelInstance?.horarioParaVisita}"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'horarioParaVisita', 'error')}</span>
				</div>
			</div>

			<div class="${hasErrors(bean: imovelInstance, field: 'dono', 'error')} required">
				<label for="dono" class="control-label"><g:message code="imovel.dono.label" default="Dono" /><span class="required-indicator">*</span></label>
				<div>
					<g:select class="form-control" id="dono" name="dono.id" from="${imobiliaria2.Usuario.list()}" optionKey="id" required="" value="${imovelInstance?.dono?.id}" class="many-to-one"/>
					<span class="help-inline">${hasErrors(bean: imovelInstance, field: 'dono', 'error')}</span>
				</div>
			</div>

